<?php
define('DS',DIRECTORY_SEPARATOR);
ini_set('mbstring.internal_encoding','utf-8');
define('BASE_PATH' , __DIR__);
define("BASE_URL",'/monvic');
define("BASE_URL_FULL",'http://'.$_SERVER['SERVER_NAME'] . BASE_URL);
define('MAIN',true);

require 'system'.DS.'myerrorhandler.php';
MyErrorHandler::Initialize();

require_once(BASE_PATH . '/system/active.php');
active::$BASE_PATH = BASE_PATH;
active::$BASE_URL = BASE_URL;


date_default_timezone_set(@date_default_timezone_get());

require_once(BASE_PATH . '/system/system.php');

active::autoload(BASE_PATH."/Library");
define("PHP_SELF",$_SERVER['PHP_SELF'].(str_replace($_SERVER['PHP_SELF'],'',(empty($_SERVER["REQUEST_URI"]) ? '' : ''.$_SERVER["REQUEST_URI"]  )) ) );
